<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
<!--<title><?php echo ($mob_seo['title']); ?> | <?php echo modC('WEBSITE_NAME','OpenSNS','Mob');?></title>  -->
<title> 有乎儿</title>
<meta name="keywords" content="<?php echo ($mob_seo['keywords']); ?>">
<meta name="description" content="<?php echo ($mob_seo['description']); ?>">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<script src="/os/Application/Mob/Static/js/jquery.min.js"></script>
<script src="/os/Application/Mob/Static/js/amazeui.min.js"></script>
<script src="/os/Public/js/com/com.functions.js"></script>
<script src="/os/Application/Mob/Static/js/toast.js"></script>
<script src="/os/Application/Mob/Static/js/apps/base.js"></script>


<script src="/os/Public/js/ext/magnific/jquery.magnific-popup.min.js"></script>
<script src="/os/Application/Mob/Static/js/toastr/toastr.min.js"></script>
<script src="/os/Application/Mob/Static/js/toast.js"></script>
<script src="/os/Application/Mob/Static/js/dist/lrz.mobile.min.js"></script>

<link rel="stylesheet" href="/os/Application/Mob/Static/css/amazeui.min.css"/>




<link rel="stylesheet" href="/os/Application/Mob/Static/css/app.css"/>
<link rel="stylesheet" href="/os/Application/Mob/Static/js/toastr/toastr.min.css" />
<link rel="stylesheet" href="/os/Application/Mob/Static/js/diyUpload.css"/>
<link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/core.css"/>
<link rel="stylesheet" href="/os/Public/js/ext/magnific/magnific-popup.css"/>
<link rel="alternate icon" type="image/png" href="assets/i/favicon.png">
<!--用于加载顶部css和js-->
<?php $config = api('Config/lists'); C($config); $count_code=C('_MOB_STATISTICALCODE'); if(empty($count_code)){ $count_code=C('COUNT_CODE'); } ?>

<script type="text/javascript">
    //全局内容的定义
    var _ROOT_ = "/os";
    var MID = "<?php echo is_login();?>";
    var MODULE_NAME="<?php echo MODULE_NAME; ?>";
    var ACTION_NAME="<?php echo ACTION_NAME; ?>";
    var CONTROLLER_NAME ="<?php echo CONTROLLER_NAME; ?>";
    var ThinkPHP = window.Think = {
        "ROOT": "/os", //当前网站地址
        "APP": "/os/index.php?s=", //当前项目地址
        "PUBLIC": "/os/Public", //项目公共目录地址
        "DEEP": "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
        "MODEL": ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
        "VAR": ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"],
        'URL_MODEL': "<?php echo C('URL_MODEL');?>",
        'WEIBO_ID': "<?php echo C('SHARE_WEIBO_ID');?>"
    }

    var weibo_comment_order = "<?php echo modC('COMMENT_ORDER',0,'WEIBO');?>";
</script>

<script>
    //全局内容的定义
    var _LOADING_ = "/os/Application/Mob/Static/images/loading.jpg";
</script>
    </head>
    <body>
        <!-- 头部 -->
        <?php D('Member')->need_login(); ?>
<style>
    .header {
        text-align: center;
    }

    .header h1 {
        font-size: 200%;
        color: #333;
        margin-top: 30px;
    }

    .header p {
        font-size: 14px;
    }
</style>
<div data-am-widget="header" class="am-header am-header-default am-header-fixed am-cf">
    <?php if(!empty($top_menu_list["left"])): ?><div class="am-header-left am-header-nav">

            <?php if(is_array($top_menu_list["left"])): $i = 0; $__LIST__ = $top_menu_list["left"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i; switch($menu["type"]): case "home": ?><a href="<?php echo ($menu["href"]); ?>" class="am-fl <?php echo ($menu["a_class"]); ?>">
                            <i class="am-header-icon am-icon-home <?php echo ($menu["i_class"]); ?>"></i><?php echo ($menu["html"]); ?>
                        </a><?php break;?>
                    <?php case "back": ?><a id="goback" need-confirm="<?php echo ($menu["need_confirm"]); ?>" confirm-info="<?php echo ($menu["confirm_info"]); ?>"
                           class="<?php echo ($menu["a_class"]); ?>">
                            <span class="am-icon-chevron-left <?php echo ($menu["span_class"]); ?>"></span>
                        </a><?php break;?>
                    <?php case "message": if (is_login()) { ?>
                        <?php echo W('Mob/Message/index');?>
                        <?php } break; endswitch; endforeach; endif; else: echo "" ;endif; ?>
        </div><?php endif; ?>

    <h1 class="am-header-title <?php echo ($top_menu_list["center"]["h1_class"]); ?>">
        <i class="<?php echo ($top_menu_list["center"]["i_class"]); ?>"></i>
        <?php echo ((isset($top_menu_list["center"]["title"]) && ($top_menu_list["center"]["title"] !== ""))?($top_menu_list["center"]["title"]):"首页"); ?>
    </h1>
    <?php if(!empty($top_menu_list["right"])): ?><div class="am-header-right am-header-nav">
            <?php if(is_array($top_menu_list["right"])): $i = 0; $__LIST__ = $top_menu_list["right"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$right): $mod = ($i % 2 );++$i; switch($right["type"]): case "edit": if(isset($right['href'])): ?><a href="<?php echo ($right['href']); ?>" class="am-fl <?php echo ($right["a_class"]); ?>">
                        <!-- <a href="<?php echo U('Mob/Task/addTask');?>" class="am-fl <?php echo ($right["a_class"]); ?>"> -->

                                <i class="am-header-icon am-icon-pencil <?php echo ($right["i_class"]); ?>"></i>
                            </a>
                            <?php else: ?>
                            <script>
                                var tip_info="<?php echo ($right['info']); ?>";
                            </script>
                            <a class="am-fl <?php echo ($right['a_class']); ?>" href="javascript:void(0);" onclick="toast.error(tip_info)">
                                <i class="am-header-icon am-icon-pencil <?php echo ($right["i_class"]); ?>"></i>
                            </a><?php endif; break; endswitch; endforeach; endif; else: echo "" ;endif; ?>
            <a href="#" class="">
            </a>
        </div><?php endif; ?>
</div>
<?php if(CONTROLLER_NAME != 'Index'): ?><link href="/os/Application/Mob/Static/js/toastr/toastr.min.css" rel="stylesheet"/>

<div id="demo-view" class="" data-backend-compiled="" style="z-index: 1040">
    <nav data-am-widget="menu" class="am-menu am-menu-offcanvas1 am-no-layout" data-am-menu-offcanvas=""><a
            href="javascript: void(0)" class="am-menu-toggle"><i class="am-menu-toggle-icon am-icon-bars"></i></a>

        <div class="am-offcanvas "
             style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
            <div class="am-offcanvas-bar am-offcanvas-bar-flip">
                <div class="am-text-center" id="user" style="display: none">
                    <?php $user=query_user(array('nickname','avatar64')); ?>
                    <?php $map = array('status' => array('gt', -1), 'pid' => 0,'url'=>array('eq','mob/user/index')); $list=D('MobChannel')->where($map)->find(); if($list){ ?>
                    <a style="text-indent: 0px;" href="<?php echo U('mob/user/index');?>">
                        <img class="avatar-img" style="border-radius: 100%;width:64px;margin-top:20px "
                             src="<?php echo ($user["avatar64"]); ?>">
                    </a><?php }else{ ?>
                    <a style="text-indent: 0px;" >
                        <img class="avatar-img" style="border-radius: 100%;width:64px;margin-top:20px "
                             src="<?php echo ($user["avatar64"]); ?>">
                    </a>
                    <?php } ?>

                    <div class="am-text-center">
                        <a class="am-text-truncate" style="color: #fff; width: 81px;
  display: block;
  margin: 0 auto;"><?php echo ($user["nickname"]); ?></a>
                    </div>
                </div>
                <div class="am-text-center" id="signin"
                     style="display: block;font-size: 18px ; height: 44px;line-height: 44px;">
                    <a href="<?php echo U('mob/Member/index');?>">
                        <i class="am-icon-sign-in"></i>
                        &nbsp;&nbsp;&nbsp;登录
                    </a>
                </div>
                <ul class="am-menu-nav am-avg-sm-1 am-text-center">

                    <?php $map = array('status' => array('gt', -1), 'pid' => 0,'url'=>array('neq','mob/user/index')); $list=D('MobChannel')->where($map)->select(); foreach($list as &$v ){ $v['url']=U($v['url']); } ?>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                            <a style="text-indent: 0px;" href="<?php echo ($vo["url"]); ?>">
                                <i class="<?php echo ($vo["icon"]); ?>"></i>
                                &nbsp;&nbsp;&nbsp;<?php echo ($vo["title"]); ?>
                            </a>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>



                    <?php if (is_login()) { ?>
                   <!--
                    <li>
                        <a style="text-indent: 0px;" href="<?php echo U('message/index');?>" class="am-icon-bell-o">
                            <i ></i>
                            &nbsp;&nbsp;&nbsp;消息
                        </a>
                    </li>
                    -->
                    <?php } ?>
                </ul>
                <div class="am-text-center" id="signout" style="display: none;padding: 5px 0px">
                    <a>
                        <i class="am-icon-sign-out"></i>
                        &nbsp;&nbsp;&nbsp;退出
                    </a>
                </div>
            </div>
        </div>
    </nav>
</div>
<script src="/os/Application/Mob/Static/js/toastr/toastr.min.js"></script>
<script src="/os/Application/Mob/Static/js/toast.js"></script>
<script>
    var uid = '<?php echo is_login();?>';
    $(document).ready(function () {
        signout();
        if (uid > 0) {
            $('#user').show()
            $('#signin').hide()
            $('#signout').show()
        } else {
            $('#user').hide()
            $('#signin').show()
            $('#signout').hide()
        }

    });

    var signout = function () {
        $('#signout').click(function () {
            $.post("<?php echo U('Mob/Member/logout');?>", {}, function (msg) {
                if (msg.status == 1) {
                    setTimeout(function () {
                        window.location.reload();
                    }, 2000);
                    toast.success('退出成功!');
                } else {
                    toast.error(msg.info);
                }
            }, 'json')
        });
    }
</script><?php endif; ?>



        <!-- /头部 -->

        <!-- 主体 -->
        

<div id="mob-main-container" class="container">
   
<script src="/os/Application/Mob/Static/js/jquery-1.11.3.min.js"></script>
<script src="/os/Application/Mob/Static/js/amazeui.min.js"></script>
<script src="/os/Application/Mob/Static/js/jquery.magnific-popup.min.js"></script>
<script src="/os/Application/Mob/Static/js/weibo.js"></script>
 <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=7ea5039f30c99ced7cad2587fafab1d4&plugin=AMap.Autocomplete"></script>
     <link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/amazeui.min.css">
     <link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/button.css">
     <link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/magnific-popup.css">
     <link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/style1.3.17.7.css">
     <link rel="alternate icon" type="image/png" href="http://www.chuangyixingnong.com/index.php/mob/activity/assets/i/favicon.png">
    <link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/weibo.css">
    <link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/main1119.css">

     <script src="/os/Application/Mob/Static/js/addToolbar.js"></script>
     <script type="text/javascript" src="/os/Application/Mob/Static/js/maps"></script>
     <link  href="/os/Application/Mob/Static/css/apps/mobiscroll_002.css" rel="stylesheet" type="text/css">
    <script  src="/os/Application/Mob/Static/js/mobiscroll_002.js" type="text/javascript"></script>
	<script src="/os/Application/Mob/Static/js/mobiscroll_004.js" type="text/javascript"></script>

	<link  href="/os/Application/Mob/Static/css/apps/mobiscroll.css" rel="stylesheet" type="text/css">
	<script src="/os/Application/Mob/Static/js/mobiscroll.js" type="text/javascript"></script>
	<script src="/os/Application/Mob/Static/js/mobiscroll_003.js" type="text/javascript"></script>
	<script src="/os/Application/Mob/Static/js/mobiscroll_005.js" type="text/javascript"></script>
	<link href="/os/Application/Mob/Static/css/apps/mobiscroll_003.css" rel="stylesheet" type="text/css">
 <form action="<?php echo U('Activity/creator');?>" method="post" >
<div data-role="page" id="page" style="background-color:">

     <input name="actlongitude" type="hidden" id="actlongitude"  />
   <input name="actlatitude" type="hidden" id="actlatitude"  />
   <input name="longitude" type="hidden" id="longitude"  />
   <input name="latitude" type="hidden" id="latitude"  />
    <input name="positiontype" type="hidden" id="positiontype"  />
      <div class="am-panel-group" id="accordion">
  <div class="am-panel am-panel-default" style="margin-top:5px;">
    <div class="am-panel-hd">
      <h4 class="am-panel-title" data-am-collapse="{parent: '#accordion', target: '#do-not-say-1'}">
        设定任务名称
      </h4>
    </div>
    <div id="do-not-say-1" class="am-panel-collapse am-collapse am-in">
      <div class="am-panel-bd">
        <input type="text" class="form-control" placeholder="请输入任务题目"  name="Title" id="Title" >
      </div>
    </div>
  </div>
  <div class="am-panel am-panel-default">
    <div class="am-panel-hd">
      <h4 class="am-panel-title" data-am-collapse="{parent: '#accordion', target: '#do-not-say-2'}">
        设定任务类型
      </h4>
    </div>
    <div id="do-not-say-2" class="am-panel-collapse am-collapse am-in">
      <div class="am-panel-bd">
         <p>
           <label style="border-style:dashed; border:thick; width:100%; height:30px; border-radius:5px" class=" am-btn button-3d am-input-group-label" for="RadioGroup1" onClick="change_color1()" id="RadioGroup1">
            <input type="radio" name="Type" id="Type" value="1" hidden="" checked>
             知道</label>
           <br>
           <label style="border-style:dashed; border:thick; width:100%; height:30px" class=" btn am-input-group-label" for="RadioGroup3">
             <input type="radio" name="RadioGroup3" value="3" id="RadioGroup3" hidden="" disabled>
              更多功能敬请期待!</label>
         </p>
      </div>
    </div>
  </div>
  <div class="am-panel am-panel-default">
    <div class="am-panel-hd">
      <h4 class="am-panel-title" data-am-collapse="{parent: '#accordion', target: '#do-not-say-3'}">设定失效时间</h4>
    </div>
    <div id="do-not-say-3" class="am-panel-collapse am-collapse am-in">
      <div class="am-panel-bd">
        <div>
			<input  value="<?php echo getDateTime(7) ?>"  class="" readonly name="deadline" id="deadline"   style="margin-top:5px">

		</div>
          <!--   <iframe id="childFrame" name="childFrame" frameBorder="0" src="/index.php?s=/mob/activity/selectmap" >
             </iframe>  -->
     <script type="text/javascript">
        $(function () {
			var currYear = (new Date()).getFullYear();
			var opt={};
			opt.date = {preset : 'date'};
			opt.datetime = {preset : 'datetime'};
			opt.time = {preset : 'time'};
			opt.default = {
				theme: 'android-ics light', //皮肤样式
		        display: 'modal', //显示方式
		        mode: 'scroller', //日期选择模式
				dateFormat: 'yyyy-mm-dd',
				lang: 'zh',
				showNow: true,
				nowText: "今天",
		       // startYear: currYear - 10, //开始年份
		       startYear: currYear , //开始年份
		        endYear: currYear + 10 //结束年份
			};

		  //	$("#appDate").mobiscroll($.extend(opt['date'], opt['default']));
		  	var optDateTime = $.extend(opt['datetime'], opt['default']);
		  	var optTime = $.extend(opt['time'], opt['default']);

		   $("#deadline").mobiscroll(optDateTime).datetime(optDateTime);
		  //  $("#appTime").mobiscroll(optTime).time(optTime);
        });
    </script>
         </div>
    </div>
  </div>
    <div class="am-panel am-panel-default">
    <div class="am-panel-hd">
      <h4 class="am-panel-title" data-am-collapse="{parent: '#accordion', target: '#do-not-say-4'}">设定红包</h4>
    </div>
    <div id="do-not-say-4" class="am-panel-collapse am-collapse am-in">
      <div class="am-panel-bd">
         <p>
           <label style="border-style:dashed; border:thick; width:100%; height:30px; border-radius:5px" class=" am-btn button-3d am-input-group-label" for="isPay1" onClick="change_color3()" id="RadioGroup11">
             <input type="radio" name="isPay" id="isPay1" value="1" style="display:none">
             发红包</label>
           <br>
           <label style="border-style:dashed; border:thick; width:100%; height:30px; border-radius:5px" class=" am-btn  button-3d am-input-group-label" for="isPay2" onClick="change_color2()" id="RadioGroup14">
             <input type="radio" name="isPay" id="isPay2" value="2" style="display:none" >
             不发红包</label></p>
         </div>
         <div>
          <input type="number" class="form-control" placeholder="请输入红包个数" name="people" id="people" value="" style="display:none">
         <input type="number" class="form-control" placeholder="红包金额,大于1元"  name="amount" id="amount" value="" style="display:none">
         </div>
      </div>
    </div>

   <div class="am-panel am-panel-default" style="margin-top:5px;">
  <div class="am-panel-hd">
      <h4 class="am-panel-title" data-am-collapse="{parent: '#accordion', target: '#do-not-say-5'}">
       发布地点
      </h4>
    </div>
    <div id="do-not-say-5" class="am-panel-collapse am-collapse am-in">
      <div class="am-panel-bd">
       <a class="forward button button-3d " href="<?php echo U('Jobs/chooseposition');?>" onClick="change_color5()" id="wz">选择位置</a><br>

                 <br>
                <a class="button button-3d" onClick="change_color6()" id="mr">当前位置</a>
      </div>
    </div>
  </div></div>



   <div align="center" style="margin-top:3px; margin-bottom:8px;">
   <button class="button button-3d button-primary button-rounded" onClick="return check_next()">下一步</button>
  <a class="button button-3d button-primary button-rounded" href="<?php echo U('activity/activitymap');?>">返回</a>
   </div>
</div>

</form>

    <div id="tip" style="position:absolute;top:50px; border:0px;font-weight: bold;background:#0e90d2;color:#FFFFFF;"></div>
 <script type="text/javascript">
     document.getElementById('actlongitude').value=125.27291;//[125.279345,43.823261],125.27291,43.821913
     document.getElementById('actlatitude').value=43.821913;
     document.getElementById('tip').innerHTML ='正在定位';
  var map, geolocation;
  //加载地图，调用浏览器定位服务

  map = new AMap.Map('container', {
      resizeEnable: true
  });
  map.plugin('AMap.Geolocation', function() {
      geolocation = new AMap.Geolocation({
          enableHighAccuracy: true,//是否使用高精度定位，默认:true
          timeout: 10000,          //超过10秒后停止定位，默认：无穷大
          buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量，默认：Pixel(10, 20)
          zoomToAccuracy: true,      //定位成功后调整地图视野范围使定位位置及精度范围视野内可见，默认：false
          buttonPosition:'RB'
      });
      map.addControl(geolocation);
      geolocation.getCurrentPosition();
      AMap.event.addListener(geolocation, 'complete', onComplete);//返回定位信息
      AMap.event.addListener(geolocation, 'error', onError);      //返回定位出错信息
  });
    // console.log(document.getElementById('tip').innerHTML );
  //解析定位结果
  function onComplete(data) {
      var str=['定位成功'];
//	alert('经度：' + data.position.getLng()+'纬度：' + data.position.getLat()+'精度：' + data.accuracy + ' 米');
   //   str.push('经度：' + data.position.getLng());
  //    str.push('纬度：' + data.position.getLat());
   //   str.push('精度：' + data.accuracy + ' 米');
  //    str.push('是否经过偏移：' + (data.isConverted ? '是' : '否'));
      document.getElementById('tip').innerHTML = str.join('<br>');
     // setTimeout("document.getElementById('tip').innerHTML =''",3000);
  longitude=data.position.getLng();
  latitude= data.position.getLat();
      var shuzhi=document.getElementById('longitude').value;
      console.log(shuzhi );
  document.getElementById('longitude').value=(longitude);
  document.getElementById('latitude').value=(latitude);

      document.getElementById('actlongitude').value=(longitude);
      document.getElementById('actlatitude').value=(latitude);

//  alert('经度:'+document.getElementById('longitude').value+'纬度:'+document.getElementById('latitude').value);
  }
  //解析定位错误信息
  function onError(data) {
      document.getElementById('tip').innerHTML = '定位失败';
      //setTimeout("document.getElementById('tip').innerHTML =''",3000);
  }
</script>
<script type="text/javascript">

function check_next()
{


amount = document.getElementById("amount");
people = document.getElementById("people");
Title = document.getElementById("Title");
//renwuleixing=document.getElementById('RadioGroup1').style.color;
 //  huodongdidianmr=document.getElementById('mr').style.color;
 //   huodongdidianwz=document.getElementById('wz').style.color;
 //   console.log(renwuleixing);
  //  console.log(huodongdidianmr);
  //  console.log(huodongdidianwz);
if(Title.value=='')
{
toast.error('标题不能为空!');
return false;
}
    if (document.getElementById('RadioGroup1').style.color==""){
        toast.error('请选择活动类型!');
        return false;
    }

var isPay=$('input:radio[name="isPay"]:checked').val();




if(typeof(isPay)=='undefined')
{
toast.error('请选择是否发放红包!');
return false;
}




//alert(isPay);
if(isPay==1)
{
if(amount.value=='')
{
toast.error('金额为空!');
return false;
}
if(people.value=='')
{
toast.error('不能为空!');
return false;
}

if(amount.value/people.value<1)
{
toast.error('每人收到的红包不能少于1元');
return false;
}


}
 //   if (document.getElementById('actlongitude').value == null || document.getElementById('actlongitude').value == undefined || document.getElementById('actlongitude').value == '') {
  //         toast.error('请选择活动地点!');
   //        return false;
   //    }

    if (((document.getElementById('mr').style.color=="")||(document.getElementById('mr').style.color=="rgb(85, 85, 85)"))&&((document.getElementById('wz').style.color=="")||(document.getElementById('wz').style.color=="rgb(85, 85, 85)"))){
        toast.error('请选择活动地点!');
        return false;
    }


}



$(function() {
  $( "#Checkboxes1" ).buttonset();
});
$(function() {
  $( "#Checkboxes1" ).buttonset();
});
$(function() {
  $( "#RadioButtons1" ).buttonset();
});
function change_color()
{
document.getElementById('RadioGroup4').style.color="#fff";//字体颜色
document.getElementById('RadioGroup4').style.backgroundColor= "#0e90d2";
//document.getElementById('RadioGroup4').style.backgroundColor= "#129ee5";
document.getElementById('RadioGroup1').style.color="#555";//字体颜色
document.getElementById('RadioGroup1').style.backgroundColor="#eee";
}
function change_color1()
{
document.getElementById('RadioGroup1').style.color="#fff";//字体颜色
document.getElementById('RadioGroup1').style.backgroundColor= "#0e90d2";
document.getElementById('RadioGroup4').style.color="#555";//字体颜色
document.getElementById('RadioGroup4').style.backgroundColor="#eee";
}
function change_color2()
{
document.getElementById('isPay2').checked=true;
document.getElementById('RadioGroup14').style.color="#fff";//字体颜色
document.getElementById('RadioGroup14').style.backgroundColor= "#0e90d2 ";
document.getElementById('RadioGroup11').style.color="#555";//字体颜色
document.getElementById('RadioGroup11').style.backgroundColor="#eee";
document.getElementById('amount').style.display="none";
document.getElementById('people').style.display="none";
}
function change_color3()
{
document.getElementById('isPay1').checked=true;
document.getElementById('RadioGroup11').style.color="#fff";//字体颜色
document.getElementById('RadioGroup11').style.backgroundColor= "#0e90d2 ";
document.getElementById('RadioGroup14').style.color="#555";//字体颜色
document.getElementById('RadioGroup14').style.backgroundColor="#eee";
document.getElementById('amount').style.display="";
document.getElementById('people').style.display="";

}


</script>
<script type="text/javascript">
  $('.form_datetime').datetimepicker({
      //language:  'fr',
      weekStart: 1,
      todayBtn:  1,
      autoclose: 1,
      todayHighlight: 1,
      startView: 2,
      forceParse: 0,
      showMeridian: 1
  });

</script>
<script>
function change_color5()
{
//    javascript:window.open('/index.php?s=/mob/activity/selectmap');
//window.open('/index.php?s=/mob/activity/selectmap');
    document.getElementById('positiontype').value=2;
document.getElementById('wz').style.color="#fff";//字体颜色
document.getElementById('wz').style.backgroundColor= "#0e90d2";
document.getElementById('mr').style.color="#555";//字体颜色
document.getElementById('mr').style.backgroundColor="#eee";
}
</script>

<script>
function change_color6()
{
   // console.log(document.getElementById('tip').innerHTML );
if (document.getElementById('tip').innerHTML == '定位成功'){
    document.getElementById('actlongitude').value=document.getElementById('longitude').value;
    document.getElementById('actlatitude').value=document.getElementById('latitude').value;
    document.getElementById('positiontype').value=1;
    document.getElementById('mr').style.color="#fff";//字体颜色
    document.getElementById('mr').style.backgroundColor= "#0e90d2";
    document.getElementById('wz').style.color="#555";//字体颜色
    document.getElementById('wz').style.backgroundColor="#eee";
}

}
</script>


</div>



        <!-- /主体 -->

        <!-- 底部 -->
        <div class="hide-foot am-text-center" style="display: none"><!-- 用于加载统计代码等隐藏元素 -->
    <?php echo ($count_code); ?>
    
</div>
        <!-- /底部 -->
    </body>
</html>